package com.example.springcloudfeignprovider01.controller;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author X.I.O
 * @title: ProviderController
 * @projectName spring-cloud-1
 * @description: TODO
 * @date 2021/11/3 0:04
 */
@RestController
@RequestMapping("/test")
public class ProviderController {

    @GetMapping("/test111")
    public Map<String, Object> getMapController(){
        Map<String, Object> objectMap=new HashMap<>();
        objectMap.put("code",1);
        objectMap.put("msg","我说服务提供者1111");
        return objectMap;
    }

    @GetMapping("test222")
    public String hetTestController() throws Exception{
        return "哈哈";
    }


}
